#pragma once

#include "Entity.h"

class Hazard : public Entity
{
public:

	Hazard(void);
	~Hazard(void);

	// Types of hazards
	enum HazardType {HZ_COMPUTER, HZ_POWERBOX, HZ_BOT, HZ_SAW, HZ_SPIKES, HZ_BARREL, HZ_BROKEN};

	// Get the type of hazard
	inline int GetHazardType(void) { return HzType; }

	// Draw
	virtual void Render(void);

	// Update
	virtual void Update(float elapsedTime);

	// Collision Response
	virtual bool CheckCollision(IEntity* base);

	// Set the room number
	inline void SetRoomNumber(int num) { roomNumber = num; }

protected:

	// Which kind of hazard this is
	int HzType;

	// Which part of the image to draw
	RECT image;

	// Which room it's in
	int roomNumber;

private:

	// How many hazards there are
	static unsigned int Count;

	// The texture ID
	static int ImageID;
};

